class Date{
  public int year;
    public int month;
    public int day;

    public Date(int year,int month,int day){
        this.year=year;
        this.month=month;
        this.day=day;
        System.out.println("调用了传3个参数的构造函数");
    }
    public Date(){
         this(2022,11,20);
         this.show();
        System.out.println("调用了无参的构造函数");
    }
    public  void show(){

        System.out.println(this.year);
        System.out.println(this.month);
        System.out.println(this.day);
    }
    public  static void show1(){
        System.out.println("good");
    }
}
public class Text {
 
    public static void main(String[] args) {

        Date date2=new Date();
        Date date1=null;
        date1.show1();
        System.out.println();




    }
}
